package com.wqr.service;


import java.util.List;

import com.wqr.pojo.Login;

public interface LoginService {

	boolean isExistName(String loginname) throws Exception;
	
	boolean isExistEmail(String email) throws Exception;

	void add(Login login) throws Exception;

	Login get(String loginname,String password) throws Exception;
	
	public Login selectByPrimaryKey(Login login) throws Exception;
	
	public int insertLogin(Login login) throws Exception;

	public List<Login> selectLogin(Login login) throws Exception;
	
	public List<Login> selectLoginByDIY(Login login) throws Exception;
	
	public List<Login> list() throws Exception;
	
	public List<Login> listAll() throws Exception;

	public int delectLogin(Integer loginId) throws Exception;
	
	public int updateLogin(Login login) throws Exception;
	
}
